/**
 * Copyright &copy; 2013-2015 山东易科德软件有限公司 All rights reserved.
 */
package cn.net.ecode.common.utils;

import java.io.Serializable;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.SessionIdGenerator;
import org.springframework.stereotype.Service;

/**
 * 封装各种生成唯一性ID算法的工具类.
 * @author ThinkGem
 * @version 2014-8-19
 */
@Service
public class IdGen extends IdGenerate implements SessionIdGenerator {

	/**
	 * 生成SessionId
	 */
	@Override
	public Serializable generateId(Session session) {
		return IdGen.uuid();
	}
	
}
